package edu.lagou.service.impl;

import edu.lagou.service.AuthcodeService;
import edu.lagou.service.CodeService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class CodeServiceImpl implements CodeService {

    @Autowired
    private AuthcodeService authcodeService;

    @Override
    public String validateCode(String email, String code) {
        System.out.println(">>> validate code using dubbo!!");
        return authcodeService.verifyCode(email, code);
    }
}
